﻿using System;
using System.Collections.Generic;
using System.Text;
using RockCompany.Common.Lib;
using RockCompany.Master.DTO;
using RockCompany.Common.Constant;
using RockCompany.Master.View;
using System.Windows.Forms;

namespace RockCompany.Master.Controller
{
    public class SI01FormController : CommonModel
    {
        public static bool newMatValidation(string sNo, string sPrice)
        {
            double d;
            bool isValidMatNo = !string.IsNullOrEmpty(sNo);
            bool isValidMatPrice = Double.TryParse(sPrice, out d);
            return isValidMatNo && isValidMatPrice;
        }
    }
}
